/*
 * @Author: QinJiu
 * @Date: 2022-07-20 10:09:26
 * @LastEditors: Qinjiu
 * @LastEditTime: 2022-07-20 13:58:09
 * @Description:
 */
import request from "@/utils/request";

export function login(params) {
  return request({
    url: "/user/login",
    method: "post",
    data: params,
  });
}

export function getUserInfo(params) {
  return request({
    url: "/user/info",
    method: "get",
    params,
  });
}

export function logout() {
  return request({
    url: "/user/logout",
    method: "post",
  });
}
